package com.custom.web.base

import com.custom.comm.page.DbPageRows
import com.custom.comm.utils.back.BackResult

/**
 * @author XiaoBai
 * @since 2024/3/5 14:51
 *
 */
abstract class BaseController<Param : AbstractQuery<View>, View> : CommonController<Param, View>() {

    override fun addBefore(res: BackResult<*>, item: View) {

    }

    override fun addAfter(res: BackResult<*>, item: View) {

    }

    override fun deleteIdBefore(res: BackResult<*>, delData: View) {

    }

    override fun deleteIdAfter(res: BackResult<*>, delData: View) {

    }

    override fun deleteIdsBefore(res: BackResult<*>, delDataList: MutableList<View>) {

    }

    override fun deleteIdsAfter(res: BackResult<*>, delDataList: MutableList<View>) {

    }

    override fun updateBefore(res: BackResult<*>, item: View) {

    }

    override fun updateAfter(res: BackResult<*>, item: View) {

    }

    override fun queryOneAfter(res: BackResult<*>, item: View) {

    }

    override fun queryPageBefore(res: BackResult<*>, param: Param) {

    }

    override fun queryPageAfter(res: BackResult<*>, param: Param, pageRows: DbPageRows<View>) {

    }
}